let fs = require("fs"); 
 let shuzu=[];
 let max=0;
 let maxwj=0;
 let min=1001;
 let minwj=0;
 for(let i=1;i<101;i++){
let shu=Math.ceil(Math.random()*1000);

fs.writeFileSync("./"+i+".txt",""+shu+"");

shuzu[i]=(fs.readFileSync("./"+i+".txt").toString());

if(Number(shuzu[i])>max){
    max=Number(shuzu[i]);
    maxwj=i;
}
if(Number(shuzu[i])<min){
    min=Number(shuzu[i]);
    minwj=i;
}
 }
 console.log("最大的文件名为："+maxwj+".txt"+"他的值是"+max);
 console.log("最小的文件名为："+minwj+".txt"+"他的值是"+min);
